package cn.sptpc.dao;

        import cn.sptpc.entity.java.Activity;
        import cn.sptpc.entity.java.User;

        import java.util.List;

public interface ActivityDao {

    /**
     * 查询接收的部门活动
     * @param pageUtil
     * @param user
     * @return
     */
    List<Activity> queryAllUser(int[] pageUtil, User user);

    /**
     * 添加一个活动
     * @param activity
     * @return
     */
    Integer insertActivity(Activity activity);

    /**
     * 根据ID查询活动
     * @param id
     * @return
     */
    Activity selectActivity(String id);

    List<Activity> queryActivity(String key,User iUser);

    Integer deleteActivity(Long id);

    Integer updateActivity(Activity activity);
}
